package com.aaa.multithreading.demo01;

/**
 * @author C-Q
 * @version 1.1.0
 * @Description: TODO
 * @date 2022/10/31
 */
public class Test {
    public static void main(String[] args) {
        //创建一个线程对象
        My1 my1 = new My1("A");
//        my1.setName("线程A");
        my1.start();
        My1 my2 = new My1("B");
//        my2.setName("线程B");
        my2.start();
        for (int i = 0; i < 20; i++) {
            System.out.println(Thread.currentThread().getName()+"main"+i);
        }
    }
}
